﻿using System;
using System.Globalization;

static class Ex7CapitalCases
{
    static string ToTitleCase(this string str)
    {
        var ti = new CultureInfo("en-US",false).TextInfo;
        return (ti.ToTitleCase(str));
    }

    public static void Main()
    {
        Console.WriteLine("pesho is a nice guy".ToTitleCase());
    }
}

